﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Speedy
{
    public class dbInvoiceDetails : MasterTable
    {
        public Column id { get; set; }
        public Column headerId { get; set; }
        public Column lineNumber { get; set; }
        public Column promoId { get; set; }
        public Column productId { get; set; }
        public Column amount { get; set; }
        public Column price { get; set; }
        public Column disc1 { get; set; }
        public Column disc2 { get; set; }
        public Column disc3 { get; set; }
        public Column disc4 { get; set; }
        public Column disc5 { get; set; }
        public Column vatRate { get; set; }
        public Column discTotal { get; set; }
        public Column lineTotal { get; set; }
        public Column lineNetTotal { get; set; }
        public Column currency { get; set; }
        public Column currencyRate { get; set; }

        public dbInvoiceDetails()
        {
            this.id = new Column(typeof(int), "ID");
            this.headerId = new Column(typeof(int), "HEADER_ID");
            this.lineNumber = new Column(typeof(int), "LINE_NUMBER");
            this.promoId = new Column(typeof(int), "PROMO_ID");
            this.productId = new Column(typeof(int), "PRODUCT_ID");
            this.amount = new Column(typeof(decimal), "AMOUNT");
            this.price = new Column(typeof(decimal), "PRICE");
            this.disc1 = new Column(typeof(decimal), "DISCOUNT_RATE_1");
            this.disc2 = new Column(typeof(decimal), "DISCOUNT_RATE_2");
            this.disc3 = new Column(typeof(decimal), "DISCOUNT_RATE_3");
            this.disc4 = new Column(typeof(decimal), "DISCOUNT_RATE_4");
            this.disc5 = new Column(typeof(decimal), "DISCOUNT_RATE_5");
            this.vatRate = new Column(typeof(int), "VAT_RATE");
            this.discTotal = new Column(typeof(decimal), "DISCOUNT_TOTAL");
            this.lineTotal = new Column(typeof(decimal), "LINE_TOTAL");
            this.lineNetTotal = new Column(typeof(decimal), "LINE_NET_TOTAL");
            this.currency = new Column(typeof(int), "CURRENCY");
            this.currencyRate = new Column(typeof(decimal), "CURRENCY_RATE");
        }

    }
}
